﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master"
    AutoEventWireup="true" CodeFile="DepSchedule.aspx.cs" Inherits="DepSchedule" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../CSS/Schedule.css" rel="stylesheet" type="text/css" />
    <script src="../My97DatePicker/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <uc:Navigator ID="Navigator1" Text="部门日程" runat="server" />
    <div>
        <%--选择部门:<asp:TextBox ID="txtDep" runat="server"></asp:TextBox>--%>
        <uc:DepartmentSelector ID="ds" runat="server"/>
        日期：<asp:TextBox ID="txtDate" runat="server" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox> 姓名：<asp:TextBox ID="txtName" runat="server"></asp:TextBox>
       <br /> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;</div>
    <div id="Search">
        <asp:ImageButton ID="ibSearch" runat="server" ImageUrl="~/Images/search.gif" 
            CssClass="imageSearch" onclick="ibSearch_Click" /><br />
        <div id="date">
            <asp:Label ID="lblDateTime" runat="server" Text=""></asp:Label></div>
        <asp:GridView ID="gvDepSchedule" runat="server" CellPadding="4" ForeColor="#333333"
            GridLines="None" AutoGenerateColumns="False" 
            onrowdatabound="gvDepSchedule_RowDataBound" DataKeyNames="UserId" 
            Width="100%">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="UserId" HeaderText="人员姓名" />
                <asp:TemplateField >
                    <HeaderTemplate>
                        星期日<asp:Label ID="lbl1" runat="server"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="hl7" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                    <HeaderStyle ForeColor="Red" />
                </asp:TemplateField>
                <asp:TemplateField >
                    <HeaderTemplate>
                        星期一<asp:Label ID="lbl2" runat="server"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="hl1" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField >
                    <HeaderTemplate>
                        星期二<asp:Label ID="lbl3" runat="server"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="hl2" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField >
                    <HeaderTemplate>
                        星期三<asp:Label ID="lbl4" runat="server"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="hl3" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField >
                    <HeaderTemplate>
                        星期四<asp:Label ID="lbl5" runat="server"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="hl4" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField >
                    <HeaderTemplate>
                        星期五
                        <asp:Label ID="lbl6" runat="server"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="hl5" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField >
                    <HeaderTemplate>
                        星期六<asp:Label ID="lbl7" runat="server"></asp:Label></HeaderTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="hl6" runat="server"></asp:HyperLink>
                    </ItemTemplate>
                    <HeaderStyle ForeColor="Red" />
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </div>
</asp:Content>
